﻿using DotPowerJob.Models;
using DotPowerJob.Responses;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace DotPowerJob
{
    public abstract class AbstractJobHandler : IJobHandler
    {
        public abstract Task<PowerJobResponse> Execute(JobExecuteContext context);

        public virtual void Dispose()
        {

        }
    }

    public interface IJobHandler : IDisposable
    {
        Task<PowerJobResponse> Execute(JobExecuteContext context);
    }
}
